﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Com.Web.coffinegurunaru.AppLogic.Page;

namespace Com.Web.coffinegurunaru.mypage
{
	public partial class MypageMasterPage : PageMasterPage
	{
		protected override void OnInit(EventArgs e)
		{
			base.OnInit(e);
			if (!this.WebCookies.IsLogin)
			{
				Response.Write("<script>alert('로그인하셔야 접근할수 있는 페이지입니다.');location.href='/';</script>");
				Response.End();
			}
		}
		protected void Page_Load(object sender, EventArgs e)
		{
			try
			{
				this.WebPage.TopMenuType = 0;
			}
			catch (Exception)
			{
				throw new Exception("WebPage가 존재하지 않습니다.");
			}

			
		}
	}
}
